package com.xl.base.annotation;

import java.lang.annotation.Documented;
import java.lang.annotation.ElementType;
import java.lang.annotation.Inherited;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

import com.xl.core.enums.SourceEnum;

@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.METHOD)
@Documented
@Inherited
public @interface DataSource {

	/**
	 * 数据源
	 * <pre>
	 * master：主库
	 * slave：从库
	 * </pre>
	 * 
	 */
	public SourceEnum source() default SourceEnum.TYPE_MASTER;
}
